from flask_wtf import FlaskForm
from wtforms import StringField, BooleanField, DateTimeField, SelectField, FileField, TextAreaField


class BlogForms(FlaskForm):
    title = StringField('主题')
    categoryid = SelectField('主题分类')
    author = StringField('作者')
    preface = StringField('序言')
    faceimage = FileField('图片')
    body = TextAreaField('详细内容')
    isshow = BooleanField('是否展示', default=1)
    ispush = BooleanField('是否推送', default=0)
